Unlink
Disconnects the application from KINGSTAR without terminating the KINGSTAR Subsystem.
Syntax
KsError Unlink();
Return value
If the function succeeds, it returns errNoError
, otherwise an error code. For more information about the error code, see the KsError list.
Example
Copy
SubsystemStatus Subsystem = { ecatOffline, ecatOffline, 0, 0, 0,
{ecatOffline}, {ecatOffline}, {axisOffline} };
nRet = Create(0, 0); // Create the connection to the KINGSTAR subsystem
if (nRet == errNoError)
{
nRet = GetStatus(&Subsystem, NULL);
}
nRet = Unlink(); // Disconnect from the KINGSTAR subsystem
// Now you can end your program while the subsystem is still running
Requirements
RT | Win32 | |
---|---|---|
Minimum supported version | 4.0 | 4.0 |
Header | ksapi.h | ksapi.h |
Library | KsApi_Rtss.lib | KsApi.lib |
See also